﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FileCompareByHash;
using System.Reflection;
using System.IO;
using System.Threading;
using System.Windows.Forms;
namespace UITest
{
    using FileCompareByHash;
    using FileCompareByHashExtension;
    class Program
    {
        static void Main(string[] args)
        {

            //MultiFileCompareByHash.About(null);
            //return;
            //MultiFileCompareByHash.CheckOnline4NewVersion(null);
            //return;

           // var p = System.Diagnostics.Process.Start("explorer.exe");
            string location = typeof(DetailedComparison).Assembly.CodeBase;

            UriBuilder uri = new UriBuilder(location);
            string path = Uri.UnescapeDataString(uri.Path);
            FileInfo fi1 = new FileInfo(path);
            location = Assembly.GetExecutingAssembly().CodeBase;
            uri = new UriBuilder(location);
            path = Uri.UnescapeDataString(uri.Path);
            FileInfo fi2 = new FileInfo(path);
            Console.WriteLine("File1 = {0} File2 ={1}", fi1.FullName, fi2.FullName);
            Form frm = null;
            frm = new AboutForm();
           //frm = new DetailedComparison(fi1, fi2, false);
           // frm = new TextDiffForm(new FileInfo(@"C:\temp\upgradelog1.htm"), new FileInfo(@"C:\temp\upgradelog2.htm"));
            frm.ShowDialog();
            frm.Dispose();
            return;





        }
    }
}
